package com.hnnou.freshmenappserver.service.impl;

import com.hnnou.freshmenappserver.bean.SchoolSwiper;
import com.hnnou.freshmenappserver.dao.SchoolSwiperDao;
import com.hnnou.freshmenappserver.service.SchoolSwiperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SchoolSwiperServiceImpl implements SchoolSwiperService {
    @Autowired
    SchoolSwiperDao schoolSwiperDao;

    public List<SchoolSwiper> findAll() {
        return schoolSwiperDao.findAll();
    }

    @Override
    public SchoolSwiper selectById(Integer id) {
        return schoolSwiperDao.selectById(id);

    }

    @Override
    public int deleteById(Integer id) {
        return schoolSwiperDao.deleteById(id);
    }

    @Override
    public int update(SchoolSwiper schoolSwiper) {
        return schoolSwiperDao.update(schoolSwiper);
    }

    @Override
    public int insert(SchoolSwiper schoolSwiper) {
        return schoolSwiperDao.insert(schoolSwiper);
    }
}
